package com.jjh.service.impl;


import com.jjh.mapper.PictureMapper;
import com.jjh.mapper.UserMapper;
import com.jjh.pojo.Players;
import com.jjh.pojo.UserPicture;
import com.jjh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Autowired
    PictureMapper pictureMapper;
    @Override
    public void addUser(Players user) {
        userMapper.addUser(user);
    }
    @Override
    public void addPictures(List<UserPicture> pictures) {
        pictureMapper.insertPicture(pictures);
    }


}
